package serialComm;

public class ATCommand extends PortCommunication {
	
	private String command;
	private String response;
	
	public ATCommand(String portToConnect) {
		super(portToConnect);
		
	}
	
	public void name() {
		
	}
	
	
	public String getCommand() {
		return command;
	}
	public void setCommand(String command) {
		this.command = command;
	}
	
	public String getResponse() {
		return response;
	}
	public void setResponse(String response) {
		this.response = response;
	}

	
	public static void main(String args[]){
		
		ATCommand cmnd=new ATCommand("COM4");
		//cmnd.setCommand("AT+CGMI\r\n");
		cmnd.writeOnPort("AT+CGMR\r\n");
		cmnd.writeOnPort("AT+CGMI");
		
		//ATCommand cmnd1=new ATCommand("COM3");
		//cmnd.setCommand("AT+CGMI\r\n");
		
	}
	
}
